<template>
	<view class="container-page mt64">
		<u-icon size="88" color="#5ac725" name="checkmark-circle-fill"></u-icon>
		<view class="t32 tbold mt32">支付成功!</view>
		<view class="t24 c-tips">您已成功支付,感谢您的下单!</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		created() {
		
		},
		mounted() {
			
		},
		onReady() {
			
		},
		onLoad(e) {
			if(e.id) {
				//this.getData(e.id)
			}
		},
		onShow() {

		},
		methods: {
			async getData(id) {
				// https://www.yuque.com/apifm/nu0f75/mmte1o
				const res = await this.$wxapi.queryOrder(this.token,id)
				if (res.code == 0) {				
					this.order = res.data
					var arr=[]
					if(this.order.packWooden !== undefined){
						this.packWooden=JSON.parse(this.order.packWooden)
						arr.push(this.packWooden.name)
					}
					if(this.order.packCarton !== undefined){
						this.packCarton=JSON.parse(this.order.packCarton)
						arr.push(this.packCarton.name)
					}
					this.valueadd=arr.join(",")
				}
			},
			
		}
	}
</script>
<style scoped lang="scss">
.container-page {
	display:flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
</style>